Identifying Inspectors to Mine Models of Object Behavior

نویسندگان

  • Valentin Dallmeier
  • Andrzej Wasylkowski
  • Nicolas Bettenburg
چکیده

In object oriented programming languages, classes are used to incorporate state (fields) and behavior (methods) that modifies the state. Typically, only a subset of a classes’ methods actually modifies the state. Methods that don’t modify the state are called side– effect free or pure methods. We propose to use purity information to classify methods as inspectors (methods that reveal information about an object’s state) or mutators (methods that change state). An inspector is a pure method that takes no parameters and has a return type other than void. Inspectors can often provide useful abstractions over the internal state of an object. For example, method isEmpty() in class Vector provides an abstraction over the internal size attribute (namely that size=0). The benefit of using inspectors is that they provide an abstract characterization of an object’s state that does not rely on internal implementation details like fields. We use inspector and mutator methods to dynamically mine models of object behavior. These models show the effect of mutator invocations on an object’s externally visible state (captured by calling all inspectors). Thus, the models are not only meaningful, but also aligned with the view of the user. In the remainder of this paper we show how common inspector methods are in the wild, and illustrate object behavior models using a real example mined from the execution of the JAVA Vector class.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Beiträge des 8. Workshops 'Software Reengineering' (WSR 2006)

Silvia Breu (University of Cambridge) Thomas Zimmermann (Saarland University) Identifying Cross-Cutting Concerns from History. Silvia Breu (University of Cambridge) Thomas Zimmermann, Christian Lindig (Saarland University) Mining Aspects from CVS Transactions using Concept Analysis. Valentin Dallmeier, Andrzej Wasylkowski Nicolas Bettenburg (Saarland University) Identifying Inspectors to Mine M...

متن کامل

Identifying and Ranking Factors on Organizational Citizenship Behavior in Petroleum Industry Research Tehran

Study of people's behavior in work environments has been an issue of interest among management scholars for a long time and with the advent of field of organizational behavior in the late 1960s, this issue became even more important. In this paper we seek to indentify and classify the factors influencing organizational citizenry behavior in Tehran petroleum industry research center using multi-...

متن کامل

Identifying patterns of the dynamic credit risk of banks customers and financial institutions: case study- an Iranian bank

Credit risk assessment has always been one of the most important concerns of banks. Widely used models such as financial models have been used to assess credit risk so far. But increasing non-performing loans indicates that today these models cannot assess the credit risk of customers. Inconstant and uncertain environmental, social and political factors affect customer behavior and change custo...

متن کامل

Investigating factors affecting the Interaction between Environmental health inspectors and providers of food procurement, distribution and supply centers in Yazd : AQualitative Study

Background and aims: One of the factors affecting the health of people in the community is the health status of food procurement distribution and supply. Overlooking and controlling of these centers is the responsibility of environmental health inspectors. Considering the importance of interaction between environmental health inspectors and providers of food supply, distribution and supply cent...

متن کامل

Mining and checking object behavior

This thesis introduces a novel approach to modeling the behavior of programs at run-time. We leverage the structure of object-oriented programs to derive models that describe the behavior of individual objects. Our approach mines object behavior models, finite state automata where states correspond to different states of an object, and transitions are caused by method invocations. Such models c...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Softwaretechnik-Trends

دوره 26  شماره 

صفحات  -

تاریخ انتشار 2006